




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.technical.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.technical.entity.Technical;
import com.application.technical.struts.form.TechnicalForm;
import com.application.technical.dao.TechnicalDAO;
 /**
 * 
 * Description:TechnicalService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class TechnicalService extends BaseService
{
	private TechnicalDAO technicalDAO;

	public TechnicalDAO getTechnicalDAO() {
		return this.technicalDAO;
	}

	public void setTechnicalDAO(TechnicalDAO technicalDAO) {
		this.technicalDAO = technicalDAO;
	}
        

        public Technical getTechnical(Technical technical) {
		return (Technical) this.getBaseDao().queryByPk(technical, technical.getId());
	}
	
	public Integer getAllCountTechnical(TechnicalForm technicalForm){
		return this.technicalDAO.getAllCountTechnical(technicalForm);
	}
	
	public List<Technical> searchTechnical(TechnicalForm technicalForm, PageBean pageBean) throws Exception {
		List<Technical> technicalList = (List) this.technicalDAO.searchTechnical(technicalForm, pageBean);
		return technicalList;
	}
        
        public void deleteTechnicals(TechnicalForm technicalForm){
	   this.technicalDAO.deleteTechnicals(technicalForm);	 
	}
        public List searchTechnical(final TechnicalForm technicalForm) {
    		List<Technical> technicalList = (List) this.technicalDAO.searchTechnical(technicalForm);
    		return technicalList;
    	}
}
